import SendGQL from "@/api/SendGQL";

//删除寺庙
const DeleteTemple = `
    mutation DeleteTemple($id: String){
        deleteTemple(id: $id )
    }
`;

export const deleteTemple = (id) => {
  return SendGQL({
    query: DeleteTemple,
    variables: {
      id,
    },
  });
};
//删除人员
const DeletePerson = `
    mutation DeletePerson($id: String){
        deletePerson(id: $id )
    }
`;

export const deletePerson = (id) => {
  return SendGQL({
    query: DeletePerson,
    variables: {
      id,
    },
  });
};
//删除线索
const DeleteClue = `
    mutation DeleteClue($id: String){
        deleteClue(id: $id )
    }
`;

export const deleteClue = (id) => {
  return SendGQL({
    query: DeleteClue,
    variables: {
      id,
    },
  });
};
//删除涉案物品
const DeleteInvolved = `
    mutation DeleteInvolved($id: String){
        deleteInvolved(id: $id )
    }
`;

export const deleteInvolved = (id) => {
  return SendGQL({
    query: DeleteInvolved,
    variables: {
      id,
    },
  });
};
//删除涉枪涉爆重点人员
const DeletePersonnel = `
    mutation DeletePersonnel($id: String){
        deletePersonnel(id: $id )
    }
`;

export const deletePersonnel = (id) => {
  return SendGQL({
    query: DeletePersonnel,
    variables: {
      id,
    },
  });
};
//删除涉枪涉爆案件
const DeleteGunInvolved = `
    mutation DeleteGunInvolved ($id: String){
        deleteGunInvolved (id: $id )
    }
`;

export const deleteGunInvolved = (id) => {
  return SendGQL({
    query: DeleteGunInvolved,
    variables: {
      id,
    },
  });
};

//删除事故
const DeleteAccident = `
    mutation DeleteAccident($id: String){
        deleteAccident(id: $id )
    }
`;

export const deleteAccident = (id) => {
  return SendGQL({
    query: DeleteAccident,
    variables: {
      id,
    },
  });
};

//删除治安重点人员
const DeleteSuspects = `
    mutation DeleteSuspects($id: String){
        deleteSuspects(id: $id )
    }
`;

export const deleteSuspects = (id) => {
  return SendGQL({
    query: DeleteSuspects,
    variables: {
      id,
    },
  });
};

//删除刑嫌人员
const DeleteSecurity = `
    mutation DeleteSecurity($id: String){
        deleteSecurity(id: $id )
    }
`;

export const deleteSecurity = (id) => {
  return SendGQL({
    query: DeleteSecurity,
    variables: {
      id,
    },
  });
};

//删除出入境人员
const DeleteOutbound = `
    mutation DeleteOutbound($id: String){
        deleteOutbound(id: $id )
    }
`;

export const deleteOutbound = (id) => {
  return SendGQL({
    query: DeleteOutbound,
    variables: {
      id,
    },
  });
};

//删除房屋信息
const DeleteHouse = `
    mutation DeleteHouse($id: String){
        deleteHouse(id: $id )
    }
`;

export const deleteHouse = (id) => {
  return SendGQL({
    query: DeleteHouse,
    variables: {
      id,
    },
  });
};

//删除方案信息
const DeletePlan = `
    mutation DeletePlan($id: String){
        deletePlan(id: $id )
    }
`;

export const deletePlan = (id) => {
  return SendGQL({
    query: DeletePlan,
    variables: {
      id,
    },
  });
};

//删除单位控制信息
const DeleteBusiness = `
    mutation DeleteBusiness($id: String){
        deleteBusiness(id: $id )
    }
`;

export const deleteBusiness = (id) => {
  return SendGQL({
    query: DeleteBusiness,
    variables: {
      id,
    },
  });
};

//删除重要点位信息
const DeletePoints = `
    mutation DeletePoints($id: String){
        deletePoints(id: $id )
    }
`;

export const deletePoints = (id) => {
  return SendGQL({
    query: DeletePoints,
    variables: {
      id,
    },
  });
};

//删除车辆
const DeleteCar = `
    mutation DeleteCar($id: String){
        deleteCar(id: $id )
    }
`;

export const deleteCar = (id) => {
  return SendGQL({
    query: DeleteCar,
    variables: {
      id,
    },
  });
};

//删除佛寺活动

const DeleteActivity = `
    mutation DeleteActivity($id: String){
        deleteActivity(id: $id )
    }
`;

export const deleteActivity = (id) => {
  return SendGQL({
    query: DeleteActivity,
    variables: {
      id,
    },
  });
};

//删除矛盾纠纷详情 Contradiction

const DeleteContradiction = `
    mutation DeleteContradiction($id: String){
        deleteContradiction(id: $id )
    }
`;

export const deleteContradiction = (id) => {
  return SendGQL({
    query: DeleteContradiction,
    variables: {
      id,
    },
  });
};

//删除矛盾详情information

const DeleteInformation = `
    mutation DeleteInformation($id: String){
        deleteInformation(id: $id )
    }
`;

export const deleteInformation = (id) => {
  return SendGQL({
    query: DeleteInformation,
    variables: {
      id,
    },
  });
};

//删除政保人员SecPersonnel.

const DeleteSecPersonnel = `
    mutation DeleteSecPersonnel($id: String){
        deleteSecPersonnel(id: $id )
    }
`;

export const deleteSecPersonnel = (id) => {
  return SendGQL({
    query: DeleteSecPersonnel,
    variables: {
      id,
    },
  });
};

//删除寺庙人员monk

const DeleteSecMonk = `
    mutation DeleteSecMonk($id: String){
        deleteSecMonk(id: $id )
    }
`;

export const deleteSecMonk = (id) => {
  return SendGQL({
    query: DeleteSecMonk,
    variables: {
      id,
    },
  });
};

//删除管理员
const DeleteManager = `
    mutation DeleteManager($id: String){
        deleteManager(id: $id )
    }
`;

export const deleteManager = (id) => {
  return SendGQL({
    query: DeleteManager,
    variables: {
      id,
    },
  });
};

//删除会员 
const DeleteMember = `
    mutation DeleteMember($id: String){
        deleteManager(id: $id )
    }
`;

export const deleteMember = (id) => {
  return SendGQL({
    query: DeleteMember,
    variables: {
      id,
    },
  });
};

